Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: separate store from datasource configurations #1487

Conversation

ndr-brt
Copy link
Contributor

@ndr-brt ndr-brt commented Aug 9, 2024

WHAT

As done in upstream, this PRs separate store configuration from the datasource one, this way it will be possibile to define and use different datasources for different stores, and by default they will all be brought back to default datasource.

WHY

Briefly state why the change was necessary.

FURTHER NOTES

  • moved actual db migration into the prepare phase, where it should belong.

Closes # <-- insert Issue number if one exists

@ndr-brt ndr-brt added the enhancement New feature or request label Aug 9, 2024
@@ -54,7 +59,7 @@

@Provider
public BusinessPartnerStore sqlStore(ServiceExtensionContext context) {
var dataSourceName = context.getConfig().getString(DATASOURCE_SETTING_NAME, DEFAULT_DATASOURCE_NAME);
var dataSourceName = DataSourceName.getDataSourceName(DATASOURCE_NAME, DATASOURCE_SETTING_NAME, context.getConfig(), context.getMonitor());

Check notice

Code scanning / CodeQL

Deprecated method or constructor invocation Note

Invoking
DataSourceName.getDataSourceName
should be avoided because it has been deprecated.
@ndr-brt ndr-brt force-pushed the separate-stores-from-datasources branch 2 times, most recently from 5b7a123 to 3b93350 Compare August 9, 2024 12:25
@ndr-brt ndr-brt marked this pull request as ready for review August 9, 2024 12:26
@ndr-brt ndr-brt force-pushed the separate-stores-from-datasources branch from 3b93350 to 10f2103 Compare August 9, 2024 12:27
Copy link

sonarqubecloud bot commented Aug 9, 2024

Copy link
Contributor

@wolf4ood wolf4ood left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🪓

@ndr-brt ndr-brt merged commit a263bf7 into eclipse-tractusx:main Aug 9, 2024
34 checks passed
@ndr-brt ndr-brt deleted the separate-stores-from-datasources branch August 9, 2024 14:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Merged
Development

Successfully merging this pull request may close these issues.

2 participants